import request from '@/utils/request'

// 查询过户记录列表
export function listTransfer(query) {
  return request({
    url: '/basedata/transfer/list',
    method: 'get',
    params: query
  })
}

// 查询过户记录详细
export function getTransfer(ID) {
  return request({
    url: '/basedata/transfer/' + ID,
    method: 'get'
  })
}

// 新增过户记录
export function addTransfer(data) {
  return request({
    url: '/basedata/transfer',
    method: 'post',
    data: data
  })
}

// 修改过户记录
export function updateTransfer(data) {
  return request({
    url: '/basedata/transfer',
    method: 'put',
    data: data
  })
}

// 删除过户记录
export function delTransfer(ID) {
  return request({
    url: '/basedata/transfer/' + ID,
    method: 'delete'
  })
}
